﻿/// Copyright © 2013 Microsoft Corporation. 
/// This project is released under the Microsoft Public License (MS-PL)
///
namespace DataMorph.Common
{
    using System.Text.RegularExpressions;

    public static class TextHelper
    {
        public static string EscapeAzureTableKeyField(string azureTableKeyFieldValue)
        {
            if (string.IsNullOrEmpty(azureTableKeyFieldValue))
            {
                return string.Empty;
            }

            var pattern = new Regex(@"[#,/,\\,? ]");
            return pattern.Replace(azureTableKeyFieldValue, string.Empty);
        }
    }
}